﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class VoiceChatVolumeShower : MonoBehaviour {
	public GameObject voiceChatVolumeShowerRoot;
	public Image VolumeShower;
	public Sprite[] volumeSprites = new Sprite[4];
	private Color AlplaTextureColor = new Color (1, 1, 1, 0);
	public void SetVoiceChatVolumeShower(bool visable){
		voiceChatVolumeShowerRoot.SetActive (visable);
		this.SetVolume (0);
	}

	public void SetVolume(int level){
		VolumeShower.color = level==0?AlplaTextureColor:Color.white;
		VolumeShower.sprite = volumeSprites[level];
	}

}
